package com.hjm.project.agentInfo.AgentCountData.domain;

import com.hjm.framework.aspectj.lang.annotation.Excel;
import com.hjm.framework.web.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 代理商交易额统计对象 agent_transaction_amount
 *
 * @author maker-platform
 * @date 2021-03-05
 */

@Data
public class AgentCountData extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Integer id;

    /** 代理商编号 */
    @Excel(name = "代理商编号")
    private String agentNum;

    /** 代理商名称 */
    @Excel(name = "代理商名称")
    private String agentName;

    /** 所属代理商 */
    @Excel(name = "所属代理商")
    private String belongAgent;

    /** 交易日期 */
    @Excel(name = "交易日期")
    private String tradeDate;

    /** 交易所属月份 */
    @Excel(name = "交易所属月份")
    private String tradeMonth;

    /** 交易金额 */
    @Excel(name = "交易金额")
    private BigDecimal amount;

    /** 统计日期 */
    @Excel(name = "统计日期")
    private String createDate;

    /** 1、线上交易 2、线下交易 3 GB电签*/
    private Integer type;

    private String grade;         //个人档位
    private String teamGrade;     //团队档位
    private String endDate;       //到期时间
    private String supportGrade;  //扶持档位


    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("agentNum", getAgentNum())
            .append("agentName", getAgentName())
            .append("belongAgent", getBelongAgent())
            .append("tradeDate", getTradeDate())
            .append("tradeMonth", getTradeMonth())
            .append("amount", getAmount())
            .append("createDate", getCreateDate())
            .append("type", getType())
            .toString();
    }
}
